import dayjs from "dayjs";
import utc from "dayjs/plugin/utc";
const DATE_FORMAT = "YYYY-MM-DD HH:mm:ss";

dayjs.extend(utc);
export function formatUtcString(
  utcString: string,
  format: string = DATE_FORMAT
) {
  return dayjs.utc(utcString).utcOffset(8).format(format);
}
